<?php

// Database access configuration
$dbhost = "localhost";
$dbuser = "thermd";
$dbpassword = "";
$dbname = "thermd";


// Reporting/sensor configuration

// YOU NEED TO CUSTOMISE THIS SECTION
ThermdStats::$location = array(48.123456,-1.23456); //lat,long (in that order) - mainly for sunrise/sunset
ThermdStats::$zenith = 90.4; // zenith (for sunrise/sunset)

ThermdStats::$wu_station = '';
ThermdStats::$wu_password = '';
ThermdStats::$wu_submiturl = 'http://weatherstation.wunderground.com/weatherstation/updateweatherstation.php';

ThermdStats::$rainfall_log_id = 5;       // the thermd log id of your rainfall sensor
ThermdStats::$temperature_log_id = 4;    // the thermd log id of your outdoor temperature sensor
ThermdStats::$dewpoint_log_id = 8;       // as above but dew point
ThermdStats::$windchill_log_id = '';      // as above but wind chill
ThermdStats::$windspeed_log_id = '';      // as above but wind speed
ThermdStats::$winddir_log_id = '';        // as above but wind direction
ThermdStats::$windgust_log_id = '';       // as above but wind gust
ThermdStats::$humidity_log_id = 6;       // as above but humidity
ThermdStats::$cloudbase_log_id = 7;      // as above but cloud base
ThermdStats::$pressure_log_id = '';       // as above but barometer
ThermdStats::$cloudsensor_log_id = '';    // as above but cloud sensor
ThermdStats::$solarsensor_log_id = '';    // as above but solar radiation sensor

// YOU CAN PROBABLY LEAVE THIS SECTION - CHANGING THINGS IN HERE MAY NOT MAKE A DIFFERENCE ANYWAY :)
ThermdStats::$loginterval = 600;         // in seconds, to match that specified in thermd config
ThermdStats::$dp = 2;                    // number of decimal places used for temperature output (setting this to higher than thermd records is pointless)
ThermdStats::$raindp = 1;                // number of decimal places used for rainfall output
ThermdStats::$trendrange = 0.4;          // temperature must have changed by this amount in $period to suggest changing temperature
ThermdStats::$thermosrc = "images/";     // the path to the source images
ThermdStats::$imgsavepath = "./";        // the path where the output image will be saved
ThermdStats::$units = html_entity_decode("&deg;")."C"; // display units for temperatures
ThermdStats::$dbtunits = "C";            // the units that the values in the DB are in C|F
ThermdStats::$rainunits = "mm";          // units for rainfall - mm|in
ThermdStats::$windunits = "MPH";         // units for wind
ThermdStats::$winddir_offset = 0;
ThermdStats::$cloudsensor_clear = 2.6;   //temp difference on a clear night
ThermdStats::$cloudsensor_partly = 1.2;  //temp difference on a party clear night
ThermdStats::$cloudsensor_cloudy = 0.25; //temp difference on a cloudy night
ThermdStats::$cloudsensor_timeoffset = 900; // time before sunrise/after sunset to stop/start checking cloud cover

?>
